package com.whj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whj.domain.dto.AddRoleDTO;
import com.whj.domain.entity.Role;
import com.whj.domain.response.ResponseResult;
import com.whj.domain.vo.RoleVo;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author wanghaijun
 * @since 2023-05-30 14:46:51
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleByUserId(Long userId);

    ResponseResult selectRole(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult roleChangeStatus(RoleVo roleVo);

    ResponseResult addRole(AddRoleDTO addRoleDTO);

    ResponseResult selectRoleById(Long id);


    ResponseResult updateRole(AddRoleDTO addRoleDTO);

    List<Role> listAllRole();
}
